//
//  UserRequestManager.h
//  much
//
//  Created by weijunjie on 2019/1/2.
//  Copyright © 2019年 iOS. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@interface MuchUserRequestManager : NSObject

/**
 获取验证码
 
 @param identity 手机号
 */
+ (void)userLoginRequestCaptchaWithIdentity:(NSString *)identity
                 successBlock:(nullable RequestSuccess)successBlock
                 failureBlock:(nullable RequestFailed)failureBlock;

/**
 短信登录

 @param identity 手机号
 @param captcha 验证码
 */
+ (void)userLoginWithIdentity:(NSString *)identity
                      captcha:(NSString *)captcha
                 successBlock:(nullable RequestSuccess)successBlock
                 failureBlock:(nullable RequestFailed)failureBlock;

/** 退出登录 */
+ (void)userLoginOut:(RequestSuccess)successBlock
        failureBlock:(RequestFailed)failureBlock;

/** 获取用户基本信息 */
+ (void)getUserBaseMessage:(RequestSuccess)successBlock
              failureBlock:(RequestFailed)failureBlock;

/**
 更改用户基本信息

 @param nickname 昵称
 @param signature 介绍
 @param areaName 区域
 @param areaSid 区域id
 @param avatarImagePath 头像地址
 @param avatarImageSid 头像id
 */
+ (void)editUserBaseMessage:(NSString *)nickname
                  signature:(NSString *)signature
                   areaName:(NSString *)areaName
                    areaSid:(NSString *)areaSid
            avatarImagePath:(NSString *)avatarImagePath
             avatarImageSid:(NSString *)avatarImageSid
               successBlock:(RequestSuccess)successBlock
               failureBlock:(RequestFailed)failureBlock;

@end

NS_ASSUME_NONNULL_END
